package br.com.tarcilahelpdesk.persistencia;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

@Entity
public class Solicitante extends ObjetoPersistente
{
    private String nome;
    @OneToMany(mappedBy = "solicitante", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)
    private List<AtributoValor> atributosSolicitante;
    
    public Solicitante(){
        atributosSolicitante = new ArrayList<AtributoValor>();
    }
    
    public String getNome()
    {
        return nome;
    }

    public void setNome(String nome)
    {
        this.nome = nome;
    }

    public List<AtributoValor> getAtributosSolicitante()
    {
        return atributosSolicitante;
    }

    public void setAtributosSolicitante(List<AtributoValor> atributosSolicitante)
    {
        this.atributosSolicitante = atributosSolicitante;
    }
    
    
    
}
